package ntu.metaweb.result;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import ntu.metaweb.storage.WebPageQuery;

@XStreamAlias("pagerating")
public class PageRating {
	@XStreamAlias("averagerating")
	public double averageRating;
	@XStreamAlias("userrating")
	public double userRating;
	
	public PageRating(String user, WebPageQuery webpagequery) {
		this.averageRating = webpagequery.getAverageRating();
		System.out.println("test");
		this.userRating = webpagequery.getUserRating(user);
		System.out.println("test2");

	}

}
